package com.lagou.dao;

import com.lagou.pojo.Account;

import java.sql.SQLException;

/**
 * @author: lcz
 * @date: Created in 18:31 2020/10/4
 * @description:
 */
public interface AccountDao {
    /**
     * @param cardNo 账号
     * @author: lcz
     * @date: Created in 11:04 2020/10/5
     * @description: 根据账号查询账户信息
     */
    Account queryAccountByCardNo(String cardNo) throws SQLException;

    /**
     * @param account
     * @author: lcz
     * @date: Created in 11:05 2020/10/5
     * @description: 根据账号信息更新账户信息
     */
    int updateAccountByCardNo(Account account) throws SQLException;
}
